import request from '@/config/axios'

export interface UserReviewRecordVO {
  id: number
  nickname: string
  avatar: string
  status: number
  account: string
  mobile: string
  password: string
  username: string
  userCode: string
  userType: number
  sex: number
  schoolId: number
  collegeId: number
  majorId: number
  classesId: number
  longitude: number
  latitude: number
  idNumber: string
  email: string
  address: string
  remarks: string
  userDevid: string
  registerIp: string
  loginIp: string
  loginDate: Date
  systemUsersId: number
  systemUsersBind: number
  bindingId: number
  deptId: number
  reviewStatus: number
  reviewRemark: string
}

// 查询会员用户审核记录列表
export const getUserReviewRecordPage = async (params) => {
  return await request.get({ url: `/member/user-review-record/page`, params })
}

// 查询会员用户审核记录详情
export const getUserReviewRecord = async (id: number) => {
  return await request.get({ url: `/member/user-review-record/get?id=` + id })
}

// 新增会员用户审核记录
export const createUserReviewRecord = async (data: UserReviewRecordVO) => {
  return await request.post({ url: `/member/user-review-record/create`, data })
}

// 修改会员用户审核记录
export const updateUserReviewRecord = async (data: UserReviewRecordVO) => {
  return await request.put({ url: `/member/user-review-record/update`, data })
}

// 删除会员用户审核记录
export const deleteUserReviewRecord = async (id: number) => {
  return await request.delete({ url: `/member/user-review-record/delete?id=` + id })
}

// 导出会员用户审核记录 Excel
export const exportUserReviewRecord = async (params) => {
  return await request.download({ url: `/member/user-review-record/export-excel`, params })
}
